package common;

public class Message{
	private int msg_id;
	private int msg_header;
	private Long sender_ip;
	private int sender_pid;
	private Long receiver_ip;
	private int receiver_pid;
	private String msg_content;
	
	public Message( int newMid, int newHeader, int newRpid, Long newRip, int newSpid, Long newSip ){
		msg_id = newMid;
		msg_header = newHeader;
		sender_ip = newSip;
		sender_pid = newSpid;
		receiver_ip = newRip;
		receiver_pid = newRpid;
	}
	
	public int getMid(){
		return msg_id;
	}
	
	public int getHeader(){
		return msg_header;
	}
	
	public Long getRip(){
		return receiver_ip;
	}
	
	public void setRip( long rip ){
		receiver_ip = rip;
	}
	
	public int getRpid(){
		return receiver_pid;
	}
	
	public Long getSip(){
		return sender_ip;
	}
	
	public int getSpid(){
		return sender_pid;
	}
	
	public String getContent(){
		return msg_content;
	}
	
	public void setContent( String newContent ){
		msg_content = newContent;
	}
}
